import request from '@/utils/request'

// 查询企业信息列表
export function getCompanyInfo() {
  return request({
    url: '/sysCompanyInfo/sysCompanyInfo/content',
    method: 'get',
  })
}

// 查询企业信息列表
export function listSysCompanyInfo(query) {
  return request({
    url: '/sysCompanyInfo/sysCompanyInfo/list',
    method: 'get',
    params: query
  })
}

// 查询企业信息详细
export function getSysCompanyInfo(id) {
  return request({
    url: '/sysCompanyInfo/sysCompanyInfo/' + id,
    method: 'get'
  })
}

// 新增企业信息
export function addSysCompanyInfo(data) {
  return request({
    url: '/sysCompanyInfo/sysCompanyInfo',
    method: 'post',
    data: data
  })
}

// 修改企业信息
export function updateSysCompanyInfo(data) {
  return request({
    url: '/sysCompanyInfo/sysCompanyInfo',
    method: 'put',
    data: data
  })
}

// 删除企业信息
export function delSysCompanyInfo(id) {
  return request({
    url: '/sysCompanyInfo/sysCompanyInfo/' + id,
    method: 'delete'
  })
}
